package com.ychug.gateway.plugin;


import com.baidu.ueditor.ActionEnter;
import com.ychug.framework.web.base.BaseController;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;


/**
 * 百度编辑其上传图片
 */

@Controller
public class UeditorController extends BaseController {


    @RequestMapping("/")
    public String index(){
        return "ueditor";
    }

    @Autowired
    private ActionEnter actionEnter;

    @ResponseBody
    @RequestMapping("/ueditor/exec")
    public String exe(HttpServletRequest request){
        return actionEnter.exec(request);
    }



}
